<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
    <center>
        <h1 style="font-weight: bold; color: aquamarine">
            Using Button : Take 1
        </h1>
        <form action="phpButton.php" method="POST" name="form1">
            <input type="hidden" name="Button">
            <input type="button" value="First" onclick="button1()">&nbsp;
            <input type="button" value="Second" onclick="button2()">&nbsp;
            <input type="button" value="Third" onclick="button3()">&nbsp;
        </form>

        <script language="JavaScript">

            function button1() {
                document.form1.Button.value = "First Button";
                form1.submit();
            }
            function button2() {
                document.form1.Button.value = "Second Button";
                form1.submit();
            }
            function button3() {
                document.form1.Button.value = "Third Button";
                form1.submit();

            }
        </script>
    </center>
</body>
</html>
